package ch.six4rty.doodle.events
{
	import flash.events.Event;
	
	import nl.demonsters.debugger.MonsterDebugger;

	/**
	 * 
	 * @author tiagodias
	 * 
	 */	
	public class DoodleEvent extends Event
	{
		
		public static const RESULTS_RECEIVED		:String		= "results_received";
		public static const DOODLE_INITIATED		:String		= "doodle_initiated";
		
		
		protected var _data							:XML;
		
		/**
		 * 
		 * @return 
		 * 
		 */		
		public function get data():XML
		{
			return _data;
			
		}
		
		/**
		 * 
		 * @param type
		 * @param data
		 * 
		 */		
		public function DoodleEvent( type:String, data:XML=null )
		{
			super( type );
			
			if ( type == "results_received" )
			{
				_data = data;
			}
		}
	}
}